package org.ch00.test11.demo01;

/*
 *
 *@author XCH
 *@date 2025 - 03 - 11 - 20:12
 *
 */
public class MainTest {
    public static void main(String[] args) {
        System.out.println("程序开始");

        // 创建三个售票线程
        CinemaThread thread1 = new CinemaThread();
        CinemaThread thread2 = new CinemaThread();
        CinemaThread thread3 = new CinemaThread();

        // 设置线程名称
        thread1.setName("售票窗口1");
        thread2.setName("售票窗口2");
        thread3.setName("售票窗口3");

        // 启动线程
        thread1.start();
        thread2.start();
        thread3.start();

        System.out.println("程序结束");
    }
}